package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.*;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 账户明细对象 e_detail
 *
 * @author hao
 * @date 2023-02-01
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("e_detail")
public class EDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @Excel(name = "订单编号")
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private String id;

    /**
     * 类型
     */
    @Excel(name = "类型")
    @TableField("state")
    private Long state;

    /**
     * 金额
     */
    @Excel(name = "金额")
    @TableField("money")
    private Integer money;

    /**
     * 备注
     */
    @Excel(name = "备注")
    @TableField("remark")
    private String remark;

    /**
     * 操作人_id
     */
    @Excel(name = "操作人_id")
    @TableField("user_id")
    private Long userId;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("operate_time")
    private Date operateTime;


    @TableField(exist = false)
    private Integer cash;

    @TableField(exist = false)
    private SysUser user;

    @TableField(exist = false)
    private String names;
}
